<template>
	<view class="xianxia1">
		<view class="xianxia_1" @click="submit(item)" v-for="(item,index) in item">
			<view class="imagh" :style="{
				'background-image':$img('https://s4.ax1x.com/2022/01/23/74otMR.png') 
			}">
			<!-- 	<image v-if="quan" src="@/static/img/dui.png" />
				<image v-else src="@/static/img/112.png" /> -->
			</view>
			<view class="xianxia_2">
				<view class="xianxia_2_1 mybox">
					<text class="xianxia_2_1t">教育的未来前瞻【洛阳站】</text>
					<text class="xianxia_2_t" v-if="!tabble"><text>124</text>人已报名</text>
					<text class="xianxia_2_t" v-if="tabble">2021.10.08</text>
				</view>
				<view class="xianxia_2_2">
					幼儿教育是考研教师如果课堂纪律不好，孩子们就会相互影
					响，且认为老师是不负责任。
				</view>
				<view v-if="!tabble" class="xianxia_2_3"
					style="display: flex;justify-content: space-between;align-items: center;">
					<text>课程时间：2021年10月10日</text>
					<image style="width:160rpx ;height: 58rpx;" :src="require('@/static/img/bm.png')" />
				</view>
				<!-- 路径为/pages/index/xianxiakecheng展示 -->
				<view v-if="tabble" class="xianxia_2_3"
					style="display: flex;justify-content: space-between;align-items: center;">
					<view class="">
						<image style="width: 25rpx;height: 25rpx;position: relative;top: 2rpx;"
							:src="require('@/static/img/tsc.png')" />
						<text style="
						margin-left: 10rpx;
						font-size: 22rpx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: #141414;
						opacity: 1;
						"> 580人已学习</text>
					</view>
					<image v-if="op!=2" style="width:200rpx ;height: 58rpx;" :src="require('@/static/img/dbm.png')" />
					<view class="bm" v-else>
						已报名
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: ['op', 'quan'],
		data() {
			return {
				tabble: true,
				item: [1, 2, 3],
			}
		},
		onLoad() {

		},
		methods: {
			submit(a) {
				console.log('测试')
				uni.navigateTo({
					url: `/pages/index/xianxiake/xiangqing?type=${a}`
					// url: `/pages/purchase/purchase?type=${"线下课程"}`
				});
			},
		}
	}
</script>


<style lang="scss" scoped>
	.imagh {
		width: 100%;
		height: 240.07rpx;
		background-size: 100% 100%;
		background-repeat: no-repeat;
		position: relative;

		image {
			width: 40rpx;
			height: 40rpx;
			position: absolute;
			right: 0;
			top: 0;
		}


	}

	.bm {
		width: 200rpx;
		height: 58rpx;
		background-color: rgba($color: #FFB300, $alpha: 0.2);
		border-radius: 4px;
		text-align: center;
		line-height: 58rpx;
		font-size: 28rpx;
		font-family: Source Han Sans CN;
		font-weight: 500;
		color: #FFB300;
		opacity: 1
	}

	.xianxia1 {
		.xianxia_1 {
			margin-bottom: 30rpx;
			background-color: #FFFFFF;
		}

		.xianxia_2 {
			padding: 0rpx 15rpx 15rpx 15rpx;

			.xianxia_2_3 {
				margin-bottom: 20rpx;

				text {
					font-size: 28rpx;
					font-family: Source Han Sans CN;
					font-weight: 500;
					color: #131314;
				}
			}

			.xianxia_2_2 {
				margin: 15rpx 0rpx 15rpx 0rpx;
				font-size: 24rpx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				line-height: 40rpx;
				color: #131314;
				letter-spacing: 2rpx;
				opacity: 1;
			}

			.xianxia_2_1 {
				align-items: flex-end;

				.xianxia_2_t {
					font-size: 24rpx;
					font-family: Source Han Sans CN;
					font-weight: 400 !important;
					color: #131314;
					opacity: 1;

					text {
						color: #FF2424;
					}
				}

				.xianxia_2_1t {
					margin-top: 10rpx;
					font-size: 32rpx;
					font-family: Source Han Sans CN;
					font-weight: bold;
					color: #333333;
					opacity: 1;
				}
			}
		}
	}
</style>
